package org.cybzacg.convert.converters.numeric;

import org.cybzacg.convert.annotation.Converter;
import org.cybzacg.convert.enums.ConversionPriority;
import org.cybzacg.convert.enums.ConversionType;
import lombok.extern.slf4j.Slf4j;

import java.math.BigInteger;

/**
 * BigInteger转换器
 * 专门处理BigInteger类型的转换
 *
 * @author cybzacg.blog
 * @version 4.0
 * @since 3.0
 */
@Slf4j
@Converter(
    name = "BigIntegerConverter",
    priority = ConversionPriority.HIGH,
    description = "BigInteger转换器，专门处理BigInteger类型的转换",
    enabled = true,
    version = "4.0",
    author = "cybzacg.blog",
    supportedTypes = {BigInteger.class},
    tags = {"biginteger", "numeric", "precision", "conversion"}
)
public class BigIntegerConverter extends AbstractNumericConverter<BigInteger> {

    public BigIntegerConverter() {
        super(BigInteger.class);
    }

    @Override
    protected ConversionType getConversionType() {
        return ConversionType.BIG_INTEGER;
    }
}
